home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / RIncludes / AppleEvents.r < prev    next >
Encoding:
Text File  |  1998-08-17  |  3.8 KB  |  95 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        AppleEvents.r
  3.  
  4.      Contains:    AppleEvent Package Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __APPLEEVENTS_R__
  19. #define __APPLEEVENTS_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25. #ifndef __AEDATAMODEL_R__
  26. #include "AEDataModel.r"        /* data types have moved to AEDataModel.r */
  27. #endif
  28.  
  29.                                                             /*  Keywords for Apple event parameters  */
  30. #define keyDirectObject                 '----'
  31. #define keyErrorNumber                     'errn'
  32. #define keyErrorString                     'errs'
  33. #define keyProcessSerialNumber             'psn '                /*  Keywords for special handlers  */
  34. #define keyPreDispatch                     'phac'                /*  preHandler accessor call  */
  35. #define keySelectProc                     'selh'                /*  more selector call  */
  36.                                                             /*  Keyword for recording  */
  37. #define keyAERecorderCount                 'recr'                /*  available only in vers 1.0.1 and greater  */
  38.                                                             /*  Keyword for version information  */
  39. #define keyAEVersion                     'vers'                /*  available only in vers 1.0.1 and greater  */
  40.  
  41. /* Event Class */
  42. #define kCoreEventClass                 'aevt'
  43. /* Event ID’s */
  44. #define kAEOpenApplication                 'oapp'
  45. #define kAEOpenDocuments                 'odoc'
  46. #define kAEPrintDocuments                 'pdoc'
  47. #define kAEQuitApplication                 'quit'
  48. #define kAEAnswer                         'ansr'
  49. #define kAEApplicationDied                 'obit'
  50.  
  51. /* Constants for recording */
  52. #define kAEStartRecording                 'reca'                /*  available only in vers 1.0.1 and greater  */
  53. #define kAEStopRecording                 'recc'                /*  available only in vers 1.0.1 and greater  */
  54. #define kAENotifyStartRecording         'rec1'                /*  available only in vers 1.0.1 and greater  */
  55. #define kAENotifyStopRecording             'rec0'                /*  available only in vers 1.0.1 and greater  */
  56. #define kAENotifyRecording                 'recr'                /*  available only in vers 1.0.1 and greater  */
  57.  
  58.  
  59. /* parameter to AESend */
  60. #define kAENeverInteract                 0x00000010            /*  server should not interact with user  */
  61. #define kAECanInteract                     0x00000020            /*  server may try to interact with user  */
  62. #define kAEAlwaysInteract                 0x00000030            /*  server should always interact with user where appropriate  */
  63. #define kAECanSwitchLayer                 0x00000040            /*  interaction may switch layer  */
  64. #define kAEDontRecord                     0x00001000            /*  don't record this event - available only in vers 1.0.1 and greater  */
  65. #define kAEDontExecute                     0x00002000            /*  don't send the event for recording - available only in vers 1.0.1 and greater  */
  66. #define kAEProcessNonReplyEvents         0x00008000            /*  allow processing of non-reply events while awaiting synchronous AppleEvent reply  */
  67.  
  68. #define kAENoReply                         0x00000001            /*  sender doesn't want a reply to event  */
  69. #define kAEQueueReply                     0x00000002            /*  sender wants a reply but won't wait  */
  70. #define kAEWaitReply                     0x00000003            /*  sender wants a reply and will wait  */
  71. #define kAEDontReconnect                 0x00000080            /*  don't reconnect if there is a sessClosedErr from PPCToolbox  */
  72. #define kAEWantReceipt                     0x00000200            /*  (nReturnReceipt) sender wants a receipt of message  */
  73.  
  74.  
  75. /* Constants for timeout durations */
  76.  
  77. /* priority param of AESend */
  78. #define kAENormalPriority                 0x00000000            /*  post message at the end of the event queue  */
  79. #define kAEHighPriority                 0x00000001            /*  post message at the front of the event queue (same as nAttnMsg)  */
  80.  
  81. /*--------------------------aedt • Apple Events Template---------------------------------*/
  82. /* Resource definition used for associating a value with an apple event */
  83. /* This really only useful for general dispatching */
  84.  
  85. type 'aedt' {
  86.     wide array {
  87.     unsigned longint;    /* Event Class     */
  88.     unsigned longint;    /* Event ID     */
  89.     unsigned longint;    /* Value     */
  90.     };
  91. };
  92.  
  93. #endif /* __APPLEEVENTS_R__ */
  94.  
  95.